
import request from '@/utils/request'

let sysappUrl = '/api/dbagent/SysDictData';

export default {
    query(data) {
        return request({
            url: sysappUrl + '/queryParam',
            method: 'POST',
            data
        })
    },

    /**
     * 保存
     */
    save(data) {
        return request({
            url: sysappUrl + '/save',
            method: 'POST',
            data
        })
    },

    /**
     * 导出xlsx
     */
    export(data) {
        return request({
            url: sysappUrl + '/exportParam',
            method: 'POST',
            data,
            responseType: 'blob'
        })
    },
    findById(id) {
        return request({
            url: sysappUrl + '/selectByPkey/?id=' + id,
            method: 'GET'
        })
    },

    deleteById(id) {
        return request({
            url: sysappUrl + '/deleteByPkey/?id=' + id,
            method: 'DELETE'
        })
    }

}
